<?php
$i = 0;
foreach ($notifs as $notif) :
?>
    <div class="notif" id="notif-<?php echo $notif->id; ?>">
        <div class="content">
            <?php echo $notif->content; ?>
        </div>
        <div class="time" id="time-<?php echo $notif->time; ?>">
            <?php echo $time_strings[$i++]; ?>
        </div>
    </div>
<?php
endforeach;
?>
